package com.ybear.ybcomponent.widget.dialog;

import android.os.Bundle;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

/**
 * Dialog 生命周期
 */
public interface DialogLifecycle {
    void onCreate(@NonNull DialogOption option, @Nullable Bundle savedInstanceState);

    void onViewCreate(@NonNull DialogOption option, @Nullable Bundle savedInstanceState);

    void onStart(@NonNull DialogOption option);

    void onStop(@NonNull DialogOption option);

    @Nullable
    Bundle onSaveInstanceState(@NonNull DialogOption option, @Nullable Bundle outState);

    void onRestoreInstanceState(@NonNull DialogOption option, @NonNull Bundle savedInstanceState);
}
